package icu.yougan.youganblogbackend.service;

import icu.yougan.youganblogbackend.common.Result;
import icu.yougan.youganblogbackend.model.Article;

import java.util.List;

public interface ArticleService {

    Result<List<Article>> list();

    Result<Article> getById(Integer id);

    Result<List<Article>> getByCategoryId(Integer categoryId);

    Result<Article> add(Article article);

    Result<Article> update(Article article);

    Result<Boolean> delete(Integer id);
} 